using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class Slot : MonoBehaviour
{
    public int slotID;
    public Item slotItem;
    public Image slotImage;
    public GameObject slotNum;
    public string slotInfo;
    public Text slotInfoText;
    public GameObject itemInSlot;
    public static Slot instance;
    private void Awake()
    {
        instance =this;
        slotInfoText.text = slotInfo;
    }
    public void SetupSlot(Item item)
    {
        if (item == null)
        {
            itemInSlot.SetActive(false);
            return;
        }
        slotImage.sprite = item.itemImage;
        slotNum.GetComponent<TextMeshProUGUI>().text = item.itemHeld.ToString();
        slotInfo = item.itemInformation;
    }
}
